package org.note.law.module.word;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.lboot.jpa.jpa.AbstractJpaCurdExt;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
@AllArgsConstructor
public class LawWordServiceImpl extends AbstractJpaCurdExt<String, LawWord, LawWordDAO> implements LawWordService{
    @Override
    public List<LawWord> getByWord(String word) {
        return dao.findByWord(word);
    }

    @Override
    public List<LawWord> deleteByWord(String word) {
        return dao.deleteByWord(word);
    }
}
